package com.we.utils;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.List;

public class PropConfirm {
    public static void main(String[] args) throws IOException {
        //        File prop = new File("/Users/jk/Downloads/风控实时标签需求/plist/compare/prop.txt");
        //        File outJson = new File("/Users/jk/Downloads/风控实时标签需求/plist/compare/output.json");
        File prop = new File("/Users/jk/Downloads/风控实时标签需求/短信/sms_stage1st.prop");
        File outJson =
                new File(
                        "/Users/jk/Downloads/风控实时标签需求/短信/cmp/1122/497cb3f9905bbd201f9cff51b412c5cd-out.json");

        String inputJson = FileUtils.readFileToString(outJson);
        List<String> lines = FileUtils.readLines(prop);

        JSONObject jsonObject = JSONObject.parseObject(inputJson);
        for (String line : lines) {
            String res = jsonObject.getString(line);
            if (res == null) {
                System.out.println(line);
            }
        }
    }
}
